package com.jkdz.spyke.rs
{
	import com.jkgh.remedy.core.client.*;
	import flash.utils.ByteArray;

	public class SpykeFileSharerListenerRemoter implements RemedyRemoter
	{
		private var mo:SpykeFileSharerListener;

		public function SpykeFileSharerListenerRemoter(mo:SpykeFileSharerListener)
		{
			this.mo = mo;
		}

		public function call(methodID:int, connection:RemedyClientServerConnection, onReturn:Function):void
		{
			switch (methodID)
			{
			}
		}

		public function run(methodID:int, connection:RemedyClientServerConnection):void
		{
			switch (methodID)
			{
				case 38:
					var a_38:String = (String)(RemedyStringClassManager.INSTANCE.readWithGraph(connection, new Vector.<Object>()));
					mo.folderNameChanged(a_38);
					break;
				case 39:
					var a_39:FileInfo = (FileInfo)(RemedyDOClassManager.INSTANCE.readWithGraph(connection, new Vector.<Object>()));
					mo.newFileOffered(a_39);
					break;
				case 37:
					var a_37:String = (String)(RemedyStringClassManager.INSTANCE.readWithGraph(connection, new Vector.<Object>()));
					mo.fileUnOffered(a_37);
					break;
				case 72:
					mo.unPublished();
					break;
			}
		}
	}
}
